package com.wht.app;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.env.ConfigurableEnvironment;

import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * @Author : WuHaoTian
 * @Date : Create in 13:11 2021/7/19
 */
@ComponentScan(value = "com.wht.app.dao")
@SpringBootApplication
public class Application {
    public static void main(String[] args) throws UnknownHostException {
        ConfigurableApplicationContext configurableApplicationContext = SpringApplication.run(Application.class);
        ConfigurableEnvironment configurableEnvironment = configurableApplicationContext.getEnvironment();
//        String port = configurableEnvironment.getProperty("server.port");
//        String address = InetAddress.getLocalHost().getHostAddress();
    }
}
